<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::namespace('Api')->group(function () {
    Route::get('/jobs', "PositionController@index");
    Route::get('/job/{id}/favorite', "PositionController@favorite");
    Route::get('/job/{id}/block', "PositionController@block");
    Route::get('/job/{id}', "PositionController@show");
    Route::get('/job/{id}/similar', "PositionController@similar");

    Route::get('/tag', "TagController@index");

    Route::get('/member', "MemberController@index");
    Route::put('/member', "MemberController@update");
    Route::get('/member/favorite', "MemberController@favorite");
    Route::get('/member/black-list', "MemberController@blackList");
    Route::get('/member/history', "MemberController@history");
    Route::get('/member/recommend', "MemberController@recommend");
    Route::put('/member/tag', "MemberController@tag");

    Route::any('/feedback', "FeedbackController@store");
});